<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg" style="width: 80% !important;">
		<div class="modal-content"></div>
	</div>
</div>
<div class="modal fade bs-modal-md" id="modelImage">
	<div class="modal-dialog modal-md" >
		<div class="modal-content-image"></div>
	</div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-cogs"></i>企业管理&gt; 企业列表&gt; 企业详情
		</div>
		<div class="tools">
			<a href="javascript:;" class="collapse" data-original-title=""
				title=""> </a>
		</div>
		<div class="actions">
			<a href="$!_requestURI?$!_queryParams" class=" btn-left btn white btn-sm ajaxify"><i class="fa fa-mail-reply"></i> 返回</a>
		</div>
	</div>
	<div class="portlet-body">
		<div class="tabbable-line ">
			<ul class="nav nav-tabs">
	            <li class="active">
	            <a href="/details/list?id=$!item.id" class="ajaxify" data-toggle="tab" aria-expanded="true"><font style="vertical-align: inherit;"><font
				   style="vertical-align: inherit;"> 基本信息 </font></font></a></li>
	            <li class="">
	            <a href="/order/company?memberId=$!item.id" class="ajaxify" data-toggle="tab"  aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 订单记录 </font></font></a></li>
	            <li class="">
	            <a href="/protocol/list?companyId=$!item.id" class="ajaxify" data-toggle="tab"  aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 报价记录 </font></font></a></li>
				<li class="">
	            <a href="/credit/list?companyId=$!item.id" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				   style="vertical-align: inherit;"> 信用记录 </font></font></a></li>
	            <li class="">
	            <a href="/account/list?companyId=$!item.id" class="ajaxify" data-toggle="tab"  aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 开票记录 </font></font></a></li>
	            <li class="">
	            <a href="/staff/list?companyId=$!item.id" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 员工记录 </font></font></a></li>    
            	<li class="">
            	<a href="/companyBill/list?companyId=$!item.id" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 账单记录 </font></font></a></li>    
            </ul>
		<div class="tab-content">
			<div class="tab-pane active form ">
				<div class="form-body">
				 <h3 class="form-section">基本信息</h3>
				  <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">企业ID：</label>
                            <div class="col-md-8">
                                <p>$!item.id</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">企业名称：</label>
                            <div class="col-md-8">
                                <p>$!item.name</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">所属行业：</label>
                            <div class="col-md-8">
                                <p>$!item.companyIndustry.name</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">企业分类：</label>
                             <div class="col-md-8">
                                <p>$!item.companyCata.name</p>
                             </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">公司性质：</label>
                            <div class="col-md-8">
                                <p>$!item.nature</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">企业规模：</label>
                            <div class="col-md-8">
                                <p>$!item.scale.name</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">认证日期：</label>
                             <div class="col-md-8">
                                <p>$!item.passTime</p>
                             </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">地区邮编：</label>
                            <div class="col-md-8">
                                <p>$!item.postcode</p>
                            </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">官网网址：</label>
                            <div class="col-md-8">
                                <p>$!item.webSite</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">企业电话：</label>
                            <div class="col-md-8">
                                <p>$!item.phone</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">企业传真：</label>
                             <div class="col-md-8">
                                <p>$!item.fax</p>
                             </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">企业邮箱：</label>
                            <div class="col-md-8">
                                <p>$!item.email</p>
                            </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-6">
           	                <label class="control-label col-md-2">企业地址：</label>
                            <div class="col-md-8 text-left">
                                <p>$!item.address</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">专管员：</label>
                            <div class="col-md-8">
                                <p>$!item.operatorName</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">申请信用金额：</label>
                            <div class="col-md-8">
                                <p>$!item.applyCredists</p>
                            </div>
                       </div>
                       #if($!item.cataId == 12)
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">合约客户初始化密码：</label>
                            <div class="col-md-8">
                                <p>$!company_password</p>
                            </div>
                       </div>
                       #end
                   </div>
                   <h3 class="form-section">营业执照信息</h3>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">统一社会信用代码：</label>
                            <div class="col-md-8">
                                <p>$!license.registration</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">法人姓名：</label>
                            <div class="col-md-8">
                                <p>$!license.name</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">法人身份证号：</label>
                             <div class="col-md-8">
                                <p>$!license.idCard</p>
                             </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">注册资本：</label>
                            <div class="col-md-8">
                                <p>$!license.capital</p>
                            </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">成立日期：</label>
                            <div class="col-md-8">
                                <p>$!license.startTime</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">有效期限：</label>
                            <div class="col-md-8">
                                <p>$!license.endTime</p>
                            </div>
                       </div>
                       <div class="col-md-6">
                       		 <label class="control-label col-md-2">住所：</label>
                             <div class="col-md-8">
                                <p>$!license.province  $!license.city  $!license.county  $!license.address </p>
                             </div>
                       </div>
                   </div>
                     <div class="row">
	                       <div class="col-md-3">
	           	                <label class="control-label col-md-4">营业执照电子版：</label>
	                            <div class="col-md-8">
		                            <a href="$!license.image" class="fancybox-button" data-rel="fancybox-button">
		                               <img class="img-responsive"  src="$!license.image" alt=""> 
		                             </a>
	                       		</div>
	                       	</div>
	                       <div class="col-md-3">
	                       		 <label class="control-label col-md-4">身份证电子版：</label>
	                            <div class="col-md-8">
		                             <a href="$!license.image" class="fancybox-button" data-rel="fancybox-button">
		                               <img class="img-responsive" src="$!license.idCardImage" alt=""> 
		                             </a>
	                            </div>
	                       </div>
	                   </div>
            <h3 class="form-section">负责人信息</h3>
				  <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4"> 会 员 号：</label>
                            <div class="col-md-8">
                                <p>$!user.id</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">昵     称：</label>
                            <div class="col-md-8">
                                <p>$!user.nickname</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">真实姓名：</label>
                             <div class="col-md-8">
                                <p>$!user.realname</p>
                             </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">性     别：</label>
                            <div class="col-md-8">
                                <p>$!user.sex.name</p>
                            </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4"> 身份证号码：</label>
                            <div class="col-md-8">
                                <p>$!user.idcard</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">出生日期：</label>
                            <div class="col-md-8">
                                <p>$!user.birthday</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">居住地址：</label>
                             <div class="col-md-8">
                                <p>$!user.site</p>
                             </div>
                       </div>
                       <div class="col-md-3">
                            <label class="control-label col-md-4">邮     箱：</label>
                            <div class="col-md-8">
                                <p>$!user.email</p>
                            </div>
                       </div>
                   </div>
                   <div class="row">
                       <div class="col-md-3">
           	                <label class="control-label col-md-4">手机号码：</label>
                            <div class="col-md-8">
                                <p>$!user.phone</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">QQ号：</label>
                            <div class="col-md-8">
                                <p>$!user.qq</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">微信号：</label>
                             <div class="col-md-8">
                                <p>$!user.wechatId</p>
                             </div>
                       </div>
                   </div>
                 <h3 class="form-section">账户信息</h3>
				 <div class="row">
				        <div class="col-md-3">
           	                <label class="control-label col-md-4">企业等级：</label>
                            <div class="col-md-8">
                                <p>$!companylevel.alias</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">账户余额：</label>
                            <div class="col-md-8">
                                <p>$!item.creditOver</p>
                            </div>
                       </div>
                       <div class="col-md-3">
                       		 <label class="control-label col-md-4">信用额度：</label>
                             <div class="col-md-8">
                                <p>$!item.credits</p>
                             </div>
                       </div>
				       <div class="col-md-3">
                       		 <label class="control-label col-md-4">账单日：</label>
                             <div class="col-md-8">
                                <p>$!item.periodCountDate</p>
                             </div>
                       </div>
				 </div>
				 <h3 class="form-section">发票信息</h3>
				<table class="table table-striped table-bordered table-hover">
					<tbody>
						<tr>
							<th>序号</th>
							<th>发票类型</th>
							<th>发票抬头</th>
							<th>统一社会信用代码</th>
							<th>开户行</th>
							<th>开户银行账号</th>
							<th>营业电话</th>
							<th>默认开票</th>
							<th>操作</th>
						</tr>
						#foreach($invoice in $!invoiceList)
						<tr>
							<td>$velocityCount</td>
							<td>$!invoice.invoiceType.name</td>
							<td>$!invoice.title</td>
							<td>$!license.registration</td>
							<td>$!invoice.depositBank</td>
							<td>$!invoice.accountBank</td>
							<td>$!invoice.companyPhone</td>
							<td>
							
							#if($!invoice.isDefault)
								<i class="fa fa-check font-yellow-gold"></i>
							#else
								 <i class="fa fa-close font-red-flamingo"></i>
							#end
							</td>
							<td>
								<a  href="#modelContent"  data-toggle="modal" thref="/orderInvoice/detailInvoice?id=$!invoice.id" class=" ajax-model-get " >查看</a>
							</td>
						</tr>
						#end
					</tbody>
				</table>
					
				 <h3 class="form-section">银行信息</h3>
				<table class="table table-striped table-bordered table-hover">
					<tbody>
						<tr>
							<th>序号</th>
							<th>银行</th>
							<th>开户地区</th>
							<th>开户支行</th>
							<th>银行账号</th>
							<th>默认银行</th>
						</tr>
						#foreach($companyBank in $!companyBankList)
						<tr>
							<td>$velocityCount</td>
							<td>$!companyBank.bankName</td>
							<td>$!companyBank.province $!companyBank.city $!companyBank.county</td>
							<td>$!companyBank.subbranch</td>
							<td>$!companyBank.bankNum</td>
							<td>#if($!companyBank.isDefault)
									<i class="fa fa-check font-yellow-gold"></i>
								#else
								 	<i class="fa fa-close font-red-flamingo"></i>
								#end
							</td>
						</tr>
						#end
					</tbody>
				</table>
				
				
			     <h3 class="form-section">收货地址</h3>
				<div class="table-scrollable">
				   <table class="table table-striped table-bordered table-hover" id="tableCategory">
					  	<thead>
							<tr>
								<th>序号</th>
								<th>收货地址</th>
								<th>收货人</th>
								<th>联系电话</th>
								<th>默认收货地址</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
						#foreach($!companyAddr in $!shippingInfos)
							<tr>
								<td>$velocityCount</td>
								<td>$!companyAddr.province $!companyAddr.city $!companyAddr.county $!companyAddr.address</td>
								<td>$!companyAddr.receiver</td>
								<td>$!companyAddr.phone</td>
								<td>
								#if($!companyAddr.first)
									<i class="fa fa-check font-yellow-gold"></i>
								 #else
									 <i class="fa fa-close font-red-flamingo"></i>
								#end
								</td>
								<td></td>
							</tr>
						#end								
						 </tbody>
					</table>
				</div>
				</div>
			</div>
		</div>
		</div>
	</div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>
<script type="text/javascript">
	ComponentsSelect2.initWithSearch()
	MyTouchSpin.init()
	$(".fancybox-button").fancybox();
	//显示大图   
   function showimage(source)
     {
		var pageContentBody = $(".modal-content-image");
		pageContentBody.html("<image src='"+source+"' class='carousel-inner img-responsive img-rounded'      width='100%'  height='100%' />");
         $("#modelImage").modal('show')
     }
</script>



